/**
 * 
 */
package com.orange.cepmanagerweb.form;

import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

import com.orange.cepmanagerweb.model.Phone;


/**
 * @author GQXG9096
 *
 */
@Component("phoneForm")
public class PhoneForm implements Validator {
	private String name;
	private Boolean noCaseSensitive = true;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the noCaseSensitive
	 */
	public Boolean getNoCaseSensitive() {
		return noCaseSensitive;
	}

	/**
	 * @param noCaseSensitive
	 *            the noCaseSensitive to set
	 */
	public void setNoCaseSensitive(Boolean noCaseSensitive) {
		this.noCaseSensitive = noCaseSensitive;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "PhoneForm [name=" + name + ", noCaseSensitive="
				+ noCaseSensitive + "]";
	}

	@Override
	public boolean supports(Class<?> arg0) {
		// TODO Auto-generated method stub
		return Phone.class.isAssignableFrom(arg0);
	}

	@Override
	public void validate(Object arg0, Errors arg1) {
		// TODO Auto-generated method stub

	}

}
